Skip to content

fix: redirect subject landing pages to chapter 0#190

Merged
pushkarscripts merged 1 commit into
pushkarscripts:mainfrom
Prasad-Pitke:fix/subject-landing-page-redirect
May 29, 2026
Merged

fix: redirect subject landing pages to chapter 0#190
pushkarscripts merged 1 commit into
pushkarscripts:mainfrom
Prasad-Pitke:fix/subject-landing-page-redirect

Conversation

@Prasad-Pitke
Copy link
Copy Markdown
Contributor

Related Issue

Fixes #185


Description

All subject landing pages (e.g. /sem1/c, /sem2/oops, /sem4/os) were showing a generic placeholder — "Welcome to the Tutorial / Select a chapter from the sidebar" — instead of actual content. The comment in each file even incorrectly said // app/page.tsx, confirming it was a copy-paste leftover from a template.

This PR replaces all 10 placeholder page.tsx files with a proper Next.js redirect() to each subject's first chapter (ch0), so users land directly on real content.


Type of Change

  • Bug fix

Screenshots / Demo

Before: Visiting /sem1/c showed an unstyled placeholder with no navbar or styling.
After: Visiting /sem1/c instantly redirects to /sem1/c/ch0 with full content.


How Has This Been Tested?

Ran npm run dev locally and visited each affected route (/sem1/c, /sem1/em1, /sem1/ep, /sem2/dsc, /sem2/em2, /sem2/oops, /sem3/coa, /sem4/dbms, /sem4/dops, /sem4/os). All redirected correctly to their respective ch0 pages.


Checklist

  • My code follows the project structure and conventions
  • I have tested the changes locally
  • I have linked the related issue properly
  • No existing functionality was broken

AI Usage

  • I have used AI tools (Claude) and I have reviewed, verified, and understood all generated code/content before submitting this PR

If AI tools were used, briefly explain how:

Used Claude to identify the bug, generate the fixed redirect files, and assist with the PR workflow.


Additional Notes

Files changed: app/sem1/c/page.tsx, app/sem1/em1/page.tsx, app/sem1/ep/page.tsx, app/sem2/dsc/page.tsx, app/sem2/em2/page.tsx, app/sem2/oops/page.tsx, app/sem3/coa/page.tsx, app/sem4/dbms/page.tsx, app/sem4/dops/page.tsx, app/sem4/os/page.tsx

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 26, 2026

@Official-Prasad is attempting to deploy a commit to the PushkarScripts Team on Vercel.

A member of the Team first needs to authorize it.

@Prasad-Pitke
Copy link
Copy Markdown
Contributor Author

Hi @pushkarscripts! 👋
I've fixed the subject landing pages that were showing a generic placeholder. All 10 pages now redirect directly to chapter 0. The Vercel check is failing due to fork authorization — the code itself is clean and conflict-free. Would love a review! 🙏

@pushkarscripts
Copy link
Copy Markdown
Owner

LGTM. Thanks for contributing!

@pushkarscripts pushkarscripts added enhancement New feature or request gssoc-26 Part of GirlScript Summer of Code 2026 gssoc:approved Approved for GSSOC '26 level:intermediate quality:exceptional type:feature labels May 29, 2026
@pushkarscripts pushkarscripts merged commit 1318c26 into pushkarscripts:main May 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gssoc:approved Approved for GSSOC '26 gssoc-26 Part of GirlScript Summer of Code 2026 level:intermediate quality:exceptional type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: [GSSoC26] feat: Subject landing pages show generic placeholder content

2 participants